﻿// code06030100.cpp : 返回类型和return
// 无返回值类型

#include <iostream>
using namespace std;
void swap(int& v1,int& v2)
{
	if (v1==v2)
	{
		return;
	}
		int temp;
		temp = v1;
		v1 = v2;
		v2 = temp;
}

int main()
{
	int a = 0, b = 10;
	cout << "a=" << a << " b=" << b << endl;
	swap(a, b);
	cout << "a=" << a << " b=" << b << endl;
	return 0;
}


